// localStorage 对象
const localStorageExpires = JSON.parse(localStorage.getItem('expires'));

for(let k in localStorage) {
    const now = new Date().getTime()
    const expiresTime= localStorageExpires[k]
    if (now - expiresTime >= 0 ){
        localStorage.removeItem(k)
    }
}